<template>
  <view class="my-search-container" :style="{'width': width1 + 'rpx', 'background-color': bcolor}">
      <view class="my-search-box" :style="{'width': width2 + 'rpx'}">
        <uni-icons type="search" size="17"></uni-icons>
        <text class="placeholder">{{text}}</text>
      </view>
    </view>
</template>

<script>
  export default {
    name:"my-search",
    data() {
      return {
        
      };
    },
    props:{
      width1:{
        type: Number,
        default: 700
      },
      width2:{
        type: Number,
        default: 650
      },
      text:{
        type: String,
        default: ''
      },
      bcolor:{
        type: String,
        default: '#FFEFCB'
      }
    }
  }
</script>

<style lang="scss">
.my-search-container {
  position: absolute;
  height: 100rpx;
  padding: 0 25px;
  top: 95px;
  display: flex;
  align-items: center;
}

.my-search-box {
  height: 64rpx;
  background-color: #ffffff;
  border-radius: 15px;
  display: flex;
  align-items: center;
uni-icons{
  margin-left: 50rpx;
}
text{
  font-size: 12px;
  color: #666666;
  margin-left: 20rpx;
}
}

</style>